﻿using System.Threading;

namespace LM75
{
    public class Program
    {
        public static void Main()
        {
            var lm75 = new Lm75Sensor(0x48,400);
            var tcpClient = new TCPClient(new byte[] { 192, 168, 0, 2 }, new byte[] { 255, 255, 255, 0 }, new byte[]{ 192, 168, 0, 100 }, new byte[]{ 192, 168, 0, 1 }, 2000);
            
            while(true)
            {
                tcpClient.Send(lm75.Temperature.ToString());
                Thread.Sleep(1500);
            }
        }
    }
}